﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace prototypes
{
    public partial class VerReserva : Form
    {
        public VerReserva()
        {
            InitializeComponent();
        }
        public VerReserva(DataTable dt)
        {
            InitializeComponent();
            DGVerDetalleReserva.DataSource = dt;
            LBNumeroHabitacion.Text += DGVerDetalleReserva.Rows[0].Cells[0].Value.ToString();
            LBFechaLLegada.Text += DGVerDetalleReserva.Rows[0].Cells[1].Value.ToString();
            LBFechaSalida.Text += DGVerDetalleReserva.Rows[0].Cells[2].Value.ToString();
            LBNombre.Text += DGVerDetalleReserva.Rows[0].Cells[3].Value.ToString();
            LBApellido.Text += DGVerDetalleReserva.Rows[0].Cells[4].Value.ToString();
            LBNumeroDocumento.Text += DGVerDetalleReserva.Rows[0].Cells[5].Value.ToString();
            LBEmail.Text += DGVerDetalleReserva.Rows[0].Cells[6].Value.ToString();
            LBTelefono.Text += DGVerDetalleReserva.Rows[0].Cells[7].Value.ToString();
            LBCelular.Text += DGVerDetalleReserva.Rows[0].Cells[8].Value.ToString();
            LBNotas.Text += DGVerDetalleReserva.Rows[0].Cells[9].Value.ToString();
        }
    }
}
